<?php
namespace app\controller;

use app\BaseController;

class Demo extends BaseController
{
    public function show()
    {
        $result = [
            'status' => 1,
            'message' => 'ok',
            'result' => [
                'id' => 1,
            ],
        ];

        $header = [
            'Token' => 'sdfdfsd',
        ];

        //json
        return json($result,201,$header);
    }
}